package com.diamond.webservice.entity;

import lombok.Data;
import java.util.List;

/**
 * 请求报文体组件
 */
@Data
public class body<T,E> {
    private List<Licence<T,E>> licence; // 证照信息列表
    private String appKey;  // 密钥
    private String name;    // 操作者姓名
    private String userName;    // 操作者用户名
    private String ip;  // 请求ip

    public body() {
        this.licence = null;
        this.appKey = "";
        this.name = "";
        this.userName = "";
        this.ip = "";
    }

    public body(List<Licence<T, E>> licence, String appKey, String name, String userName, String ip) {
        this.licence = licence;
        this.appKey = appKey;
        this.name = name;
        this.userName = userName;
        this.ip = ip;
    }
}
